package veilingDomein;

import java.util.Date;
import java.util.Calendar;

public class Bieding {

	private long biedingId;
	private Date date;
	private int bedrag;
	private User user;
	private Veiling veiling;

	public Bieding(int bedrag, User user, Veiling veiling)
			throws BiedingException {
		this.bedrag = bedrag;
		this.user = user;
		this.veiling = veiling;
		date = new Date();
	}

	public Bieding(int bedrag, User user, Veiling veiling, Date date, long id)
			throws BiedingException {
		this.bedrag = bedrag;
		this.user = user;
		this.veiling = veiling;
		this.date = date;
		this.biedingId = id;
	}

	public long getId() {
		return biedingId;
	}

	public Bieding() {

	}

	public Date getDate() {
		return date;
	}

	public int getBedrag() {
		return bedrag;
	}

	public User getUser() {
		return user;
	}

	public Veiling getVeiling() {
		return veiling;
	}

	public String toString() {
		return "Bedrag: " + bedrag + "User: " + user.getUsername();
	}
}
